import request from '@/utils/request'

export function getNotice() {
  return request({
    url: '/notice',
    method: 'get'
  })
}

export function addNotice(data) {
  return request({
    url: '/notice',
    method: 'post',
    data
  })
}

export function modifyNotice(id, data) {
  return request({
    url: `/notice/${id}`,
    method: 'put',
    data
  })
}

export function removeNotice(id) {
  return request({
    url: `/notice/${id}`,
    method: 'delete'
  })
}
